//
//  jiankangViewController.m
//  左邻右家
//
//  Created by dsdf on 16/2/22.
//  Copyright © 2016年 Hiccup. All rights reserved.
//

#import "jiankangViewController.h"

@interface jiankangViewController ()

@end

@implementation jiankangViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    
    UIButton *button=[[UIButton alloc]init];
    button.frame=CGRectMake(0, 0, 375, 64);
    button.backgroundColor=[UIColor colorWithRed: 230/255.0 green:55/255.0 blue:55/255.0 alpha:1.0];
    [self.view addSubview:button];
    
    
    UILabel *labletext=[[UILabel alloc]init];
    labletext.frame=CGRectMake(155, 34, 66, 14);
    labletext.text=@"健康";
    labletext.textColor=[UIColor redColor];
    labletext.adjustsFontSizeToFitWidth=YES;
    labletext.textColor=[UIColor whiteColor] ;
    [self.view addSubview:labletext];
    
    
    UIButton *button5=[[UIButton alloc]init ];//]WithFrame:CGRectMake(50, 50, 20, 20)];
    button5.frame=CGRectMake(22, 35, 20, 20);
    [button5 setBackgroundImage:[UIImage imageNamed:@"return@2x.png"] forState:UIControlStateNormal];
    [button5 addTarget:self action:@selector(fanhui:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button5];
    
    
    
    UIButton *button1=[[UIButton alloc]initWithFrame:CGRectMake(0, 618, 187, 50)];
    [button1  setImage:[UIImage imageNamed:@"测量获焦.png"] forState:UIControlStateNormal];
    [button1 setImage:[UIImage imageNamed:@"测量未获焦.png"] forState:UIControlStateSelected];
    [button1 addTarget:self action:@selector(button1chi) forControlEvents:UIControlEventTouchUpInside];
    
    
    [self.view addSubview:button1];
    
    
    
    UIButton *button2=[[UIButton alloc]initWithFrame:CGRectMake(188, 618, 187, 50)];
    [button2  setImage:[UIImage imageNamed:@"历史记录未获焦.png"] forState:UIControlStateNormal];
    [button2 setImage:[UIImage imageNamed:@"历史记录获焦.png"] forState:UIControlStateSelected];
    [button2 addTarget:self action:@selector(button2chi) forControlEvents:UIControlEventTouchUpInside];
    
    
    [self.view addSubview:button2];
    

    
    
//    
//    UIButton *checkbox10 = [UIButton buttonWithType:UIButtonTypeCustom];
//    
//    checkbox10.frame=CGRectMake(25 ,275,15,15);
//    
//    [checkbox10 setImage:[UIImage imageNamed:@"fang未勾选状态1@2x.png"] forState:UIControlStateNormal];
//    [checkbox10 setImage:[UIImage imageNamed:@"fang勾选状态1@2x.png"] forState:UIControlStateSelected];
//    [checkbox10 addTarget:self action:@selector(checkboxClick:) forControlEvents:UIControlEventTouchUpInside];
//    [self.view addSubview:checkbox10];
//    
//
    _view1.tag=1.0;
    _view2.tag=0.0;
    

    
    
    
}

- (void)button1chi {
    _view1.tag=1.0;
    _view2.tag=0.0;
    


}


- (void)button2chi {
    
    _view1.tag=0.0;
    _view2.tag=1.0;
    
    
}

- (IBAction)fanhui:(id)sender {
    [self dismissModalViewControllerAnimated:YES];
}





- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
